import request from '@/utils/request'

// 查询学生家教需求列表
export function listRequests(query) {
  return request({
    url: '/system/requests/list',
    method: 'get',
    params: query
  })
}

// 查询学生家教需求详细
export function getRequests(id) {
  return request({
    url: '/system/requests/' + id,
    method: 'get'
  })
}

// 新增学生家教需求
export function addRequests(data) {
  return request({
    url: '/system/requests',
    method: 'post',
    data: data
  })
}

// 修改学生家教需求
export function updateRequests(data) {
  return request({
    url: '/system/requests',
    method: 'put',
    data: data
  })
}

// 删除学生家教需求
export function delRequests(id) {
  return request({
    url: '/system/requests/' + id,
    method: 'delete'
  })
}
